/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.dropdown-content{
    display: none;
}

.dropdown-content.show{
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, #b23737f6 10%, #ba0d0d 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    margin-left: auto;
    background-color: #ff0004;
    color: rgb(255, 255, 255);
    padding: 1px 1px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    margin-right: 10px;
    gap: 10px;
}

.header-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-container img {
    filter: invert(1);
    transition: transform 0.3s ease;
}

.header-container img:hover {
    transform: scale(1.1);
}

.header-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav a:not(.profile-link):hover {
    color: #ffcdd2;
}

/* User Menu Styles */
.user-menu {

    gap: 1px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: default;
    margin-left: 70px;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.user-avatar {
    width: 20px;
    height: 20px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000a7;
    font-size: 1.8rem;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 1px;
}

.user-dropdown i {
    color: #666;
    font-size: 0.9rem;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f3f5;
    color: #6a11cb;
}

.dropdown-content a.active {
    color: #86d0e9;
    background-color: #f0f0ff;
}

.dropdown-content .divider {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}
/* ===== MAIN CONTENT STYLES ===== */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Form Section */
.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.section-header {
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.form-container {
    padding: 30px;
}

/* Fieldset Styling */
fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

fieldset:hover {
    border-color: #c62828;
}

legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: #c62828;
    padding: 0 15px;
    background: white;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #444;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions input[type="submit"],
.form-actions input[type="reset"] {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.form-actions input[type="submit"] {
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
    color: white;
}

.form-actions input[type="submit"]:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.form-actions input[type="reset"] {
    background: #f0f0f0;
    color: #666;
}

.form-actions input[type="reset"]:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ===== NOTE SECTION ===== */
.note-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffebee 100%);
    border-radius: 12px;
    border-left: 5px solid #c62828;
    padding: 25px;
    margin-bottom: 30px;
}

.note-container h3 {
    color: #c62828;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.note-content p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #ffcdd2;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62828;
    display: inline-block;
}

.address-info p,
.contact-details p,
.location-email p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-details a,
.location-email a {
    color: #ffcdd2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover,
.location-email a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
}

.copyright p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-container a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    fieldset {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions input[type="submit"],
    .form-actions input[type="reset"] {
        width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown-content {
        position: fixed;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .form-group input,
    .form-group select {
        max-width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ===== FORM VALIDATION STYLES ===== */
.was-validated input:invalid,
.was-validated select:invalid {
    border-color: #ff6b6b;
}

.was-validated input:valid,
.was-validated select:valid {
    border-color: #51cf66;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.was-validated input:invalid + .error-message {
    display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section,
.note-section {
    animation: fadeIn 0.5s ease-out;
}

/* ===== BLOOD TYPE COLORS ===== */
.blood-type-options option {
    padding: 10px;
}

.blood-type-options option[value="A+"] { background-color: #ffebee; }
.blood-type-options option[value="A-"] { background-color: #ffcdd2; }
.blood-type-options option[value="B+"] { background-color: #f3e5f5; }
.blood-type-options option[value="B-"] { background-color: #e1bee7; }
.blood-type-options option[value="O+"] { background-color: #e8f5e8; }
.blood-type-options option[value="O-"] { background-color: #c8e6c9; }
.blood-type-options option[value="AB+"] { background-color: #e3f2fd; }
.blood-type-options option[value="AB-"] { background-color: #bbdefb; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c62828;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b71c1c;
}